<!DOCTYPE html>
<html>
    <head>
        <include file="Public/formHead"/>
        <title>
            <block name="newflow_title">
            </block>
        </title>
        <style type="text/css">
            
            ul {
                list-style: none;
            }
            
            ul[name = menu_ul] li a {
                color: white;
            }
            
            #file-list > span > i {
                cursor: pointer;
            }
        </style>
        <block name="newflow_style">
        </block>
    </head>
    <body style="overflow:hidden;">
        <div id="top-alert" class="fixed alert alert-error am-u-sm-12 am-u-md-12" style="display:none;left:0px">
            <button class="close" style="margin-top: 4px;">
                &nbsp;
            </button>
            <div class="alert-content">
                这是内容
            </div>
        </div>
        <header class="am-topbar-fixed-top am-padding-top-sm" style="background-color:#F2F2F2">
            <div class="am-g">
                <div class="am-u-lg-1" name="div_left" style="z-index:998;float:left;position:absolute;">
                    <a id="am-icon"><i class="am-icon-th-large  am-icon-sm"></i></a>
                    <ul name="menu_ul" style="width:100px">
                        <li class="am-active am-btn-success am-text-center">
                            <a name="#tab1" href="#tab1" class="am-text-sm">反&nbsp;&nbsp;馈</a>
                        </li>
                        <li class="am-btn-secondary am-text-center">
                            <a name="#tab2" class="am-text-sm">附&nbsp;&nbsp;件</a>
                        </li>
                        <li class="am-btn-warning  am-text-center ">
                            <a name="#tab3" class="am-text-sm">子流程</a>
                        </li>
                        <li class="am-btn-primary   am-text-center">
                            <a name="#tab4" class="am-text-sm">流&nbsp;&nbsp;程</a>
                        </li>
                    </ul>
                </div>
                <div class="am-u-lg-7 am-text-right">
                    <block name="newflow_head">
                    </block>
                </div>
                <div class="am-u-lg-3 am-fr">
                    <block name="alist">
                    </block>
                </div>
            </div>
        </header>
        <div id="Contename">
            <div class="am-container am-padding-top-sm ">
                <form id="form"  data-am-validator>
                <fieldset>
                    {$flowRunModel['formContent']}<input type="hidden" name="run_id" value="{$flowRunModel['flowRun']['run_id']}"/><input type="hidden" name="flow_id" value="{$flowRunModel['flowRun']['flow_id']}"/><input type="hidden" name="process_id" value="{$flowRunModel['flowRun']['process_id']}"><input type="hidden" name="process_run_id" name="process_run_id" value="{$flowRunModel['flowRun']['process_run_id']}"/>
                </fieldset>
				</form><include file="Public/submitModel"/><!-- 人员/部门弹出框 --><include file="Public/itemModal"/><!-- 角色选择框 --><include file="Public/roleModal"/>
            </div>
            <block name="newflow_content">
            </block>
        </div>
        <input type="hidden" id="run_id" value="{$flowRunModel['flowRun']['run_id']}"/><input type="hidden" id="flow_id" value="{$flowRunModel['flowRun']['flow_id']}"/><input type="hidden" id="process_id" value="{$flowRunModel['flowRun']['process_id']}"><input type="hidden" id="process_run_id" value="{$flowRunModel['flowRun']['process_run_id']}"/><input type="hidden" id="feedback_id">
		<input type="hidden" id="flow_type" value="{$flowRunModel['flowRun']['flow_type']}"/>
    </body>
    <script type="text/javascript" src="__PUBLIC__/Blovex4/js/new_flow.js" charset="utf-8">
    </script>
    <script type="text/javascript">
        window.issave = false;
        window.isdel = false;
        window.onload = function(){
            feedback_ajax();
            
            
        };
        //禁用F5
        $(document).bind("keydown", function(e){
            e = window.event || e;
            if (e.keyCode == 116) {
                e.keyCode = 0;
                return false;
            }
        });
        //禁用左边菜单
        document.oncontextmenu = function(){
           return false;
        };
        $(function(){
        
            $("ul[name=menu_ul]").hide();
            
            $("div[name=div_left]").mouseover(function(){
                $("ul[name=menu_ul]").show();
            }).mouseout(function(){
                $("ul[name=menu_ul]").hide();
            });
            $("ul[name=menu_ul]>li>a").click(function(){
                var name = $(this).attr('name');
                $("ul[name=ul_li]>li").each(function(data){
                    if ($(this).attr('name') == name) {
                        $(this).children('a').click();
                        
                        $(this).addClass('am-active');
                    }
                    else {
                        $(this).removeClass('am-active');
                    }
                });
                $(".am-tabs").foucs();
                $("ul[name=menu_ul]").hide();
            });
            //签办反馈
            $("a[name=#tab1]").click(function(){
            
                feedback_ajax();
            });
            //附件
            $("a[name=#tab2]").click(function(){
                $("#attachment_list").empty();
                attachment_ajax();
            });
            //子流程
            $("a[name=#tab3]").click(function(){
                $("#subFlow_list").empty();
                subFlow_ajax();
                
            });
            
            //流程图
            $("a[name=#tab4]").click(function(){
                $("#flowRecord_list").empty();
                flowRecord_ajax();
            });
            
            
            
        });
    </script>
    <block name="newflow_script">
    </block>
</html>
